package com.bite.book.controller;

import com.bite.book.model.BookInfo;
import com.bite.book.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-11-18
 * Time: 11:28
 */
@RequestMapping("/book")
@RestController
public class BookController {
    @Autowired
    //代表从spring获取这个对象，然后赋值给bookeService
    private BookService bookService;

    @RequestMapping("/getList")
    public List<BookInfo> getList(){

        return bookService.getList();
    }


}
